#include "Queue.h"

void test()
{
	Queue q;
	QueueInit(&q);

	QueuePush(&q,1);
	QueuePush(&q,2);
	QueuePush(&q,3);
	QueuePush(&q,4);
	QueuePush(&q,5);
	QueuePrint(&q);
	//1 2 3 4 5

	QueuePop(&q);
	QueuePop(&q);
	QueuePrint(&q);
	//3 4 5
	//printf("%d\n", QueueSize(&q));

	printf("phead : %d\n", QueueFront(&q));
	printf("ptail : %d\n", QueueBack(&q));

	QueueDestory(&q);
}
int main()
{
	test();
	return 0;
}